<template>
  <div>
    <TsDialog v-bind="dialogConfig" @on-close="close">
      <template v-slot>
        <div><TransactionList
          :needCheck="true"
          :needAction="true"
          :needSearch="false"
          :ciEntityId="ciEntityId"
          :ciId="ciId"
        ></TransactionList></div>
      </template>
      <template v-slot:footer>
        <Button @click="close()">{{ $t('page.cancel') }}</Button>
      </template>
    </TsDialog>
  </div>
</template>
<script>
export default {
  name: '',
  components: {
    TransactionList: () => import('./transaction-list.vue')
  },
  props: {
    ciEntityId: {type: Number},
    ciId: {type: Number}
  },
  data() {
    return {
      dialogConfig: {
        title: this.$t('term.cmdb.uncommittransaction'),
        type: 'modal',
        maskClose: false,
        isShow: true,
        width: 'large'
      }
    };
  },
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {},
  methods: {
    close() {
      this.$emit('close', true);
    }
  },
  filter: {},
  computed: {},
  watch: {}
};
</script>
<style lang="less">
</style>
